package cho09;

/**
 * Created by 春旺 on 2017/4/12.
 */
//*******************************************************************
 // StaffMember.java Java Foundations
 //
 // Represents a generic staff member.
 //********************************************************************
 abstract public class StaffMember
 {
 protected String name;
 protected String address;
 protected String phone;
 //-----------------------------------------------------------------
 // Constructor: Sets up this staff member using the specified
 // information.
 //-----------------------------------------------------------------
 public StaffMember (String eName, String eAddress, String ePhone)
 {
 name = eName;
 address = eAddress;
 phone = ePhone;
 }
 //-----------------------------------------------------------------
 // Returns a string including the basic employee information.
 //-----------------------------------------------------------------
 public String toString()
 {
 String result = "Name: " + name + "\n";
 result += "Address: " + address + "\n";
 result += "Phone: " + phone;
 return result;
 }
 //-----------------------------------------------------------------
 // Derived classes must define the pay method for each type of
 // employee.
 //-----------------------------------------------------------------

  //-----------------------------------------------------------------
// Returns the pay rate for this employee.
//-----------------------------------------------------------------
  public double pay()
  {
   return 0.0;
  }
 }


